package example.pattern.builder;

/**
 * Director class
 * 
 * @author Administrator
 *
 */
public class TextDirector {

	private TextBuilder builder;

	public void setBuilder(TextBuilder builder) {
		this.builder = builder;
	}

	public String constructText() {
		builder.newText();
		builder.makeHeader("header");
		builder.makeContent("content");
		builder.makeFooter("footer");
		return builder.getResult();
	}
}
